package com.sm.honkon.ui.fragment.setting

import android.os.Bundle
import au.com.safie.user.app.util.CacheUtil
import com.sm.honkon.R
import com.sm.honkon.app.base.BaseFragment
import com.sm.honkon.app.handle.BottomHandle
import com.sm.honkon.databinding.FrgMysettingJiaozhunxishuBinding
import com.sm.honkon.ui.model.JiaozhunxishuViewModel
import kotlinx.android.synthetic.main.frg_mysetting_jiaozhunxishu.*
import me.hgj.jetpackmvvm.ext.nav

class jiaozhunxishuFragment : BaseFragment<JiaozhunxishuViewModel, FrgMysettingJiaozhunxishuBinding>() {
    override fun layoutId(): Int = R.layout.frg_mysetting_jiaozhunxishu

    override fun initView(savedInstanceState: Bundle?) {
        mDatabind.model = mViewModel
        mDatabind.handle = BottomHandle(nav())

        btn_save.setOnClickListener {
            CacheUtil.setCommonConfig(mViewModel.config)
            nav().navigateUp()
        }
    }


}